<template>
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px" style="margin:10px 10px;">
  <el-form-item label="用户名：">
    {{ruleForm.username}}
  </el-form-item>
  <el-form-item label="所购商品：">
    {{ruleForm.goods}}
  </el-form-item>
  <el-form-item label="地址：">
    {{ruleForm.address}}
  </el-form-item>
  <el-form-item label="状态：">
    {{ruleForm.status}}
  </el-form-item>
  <el-form-item label="下单时间：">
    {{ruleForm.ctime}}
  </el-form-item>
</el-form>
</template>
<script>

  export default {
    data() {
      return {
        ruleForm: {},
		
      };
    },
    methods: {
	  getOrder(){
		this.$axios({
			method:"post",
			url:this.host+"/admin/index.php/Order/getOrder",
			data:{
				oid : this.$route.query.oid
			}
		}).then((res)=>{
			this.ruleForm = res.data 
		})
	  }
    },
	mounted () {
		if(this.$route.query.oid)
			this.getOrder()	
	}
  }
</script>